old_contents: #!/usr/bin/env python
  
  from sys import exit
  
  try:
      import sympy
  except ImportError:
      print("SymPy must be installed for the tutorial")
  
  if sympy.__version__ != '1.1':
      print("SymPy 1.1 is required for the tutorial. Note SymPy 1.1 will be released before July 10.")
  
  try:
      import numpy
  except ImportError:
      print("NumPy is required for the tutorial")
  
  try:
      import Cython
  except ImportError:
      print("Cython is required for the tutorial")
  
  try:
      import scipy
  except ImportError:
      print("scipy is required for the tutorial")
  
  from sympy.utilities.autowrap import ufuncify
  from sympy.abc import x
  from sympy import sin
  
  try:
      f = ufuncify(x, sin(x))
      assert f(0) == 0
  except:
      print("sympy.utilities.autowrap.ufuncify does not work")
      raise
  
new_contents: #!/usr/bin/env python
  
  from sys import exit
  
  try:
      import sympy
  except ImportError:
      print("SymPy must be installed for the tutorial")
  
  if sympy.__version__ != '1.1':
      print("SymPy 1.1 is required for the tutorial. Note SymPy 1.1 will be released before July 10.")
  
  try:
      import numpy
  except ImportError:
      print("NumPy is required for the tutorial")
  
  try:
      import Cython
  except ImportError:
      print("Cython is required for the tutorial")
  
  try:
      import scipy
  except ImportError:
      print("scipy is required for the tutorial")
  
  from sympy.utilities.autowrap import ufuncify
  from sympy.abc import x
  from sympy import sin
  
  try:
      f = ufuncify(x, sin(x))
      assert f(0) == 0
  except:
      print("sympy.utilities.autowrap.ufuncify does not work")
      raise
  
  try:
      import conda
  except ImportError:
      print("conda is needed (either anaconda or miniconda from https://www.continuum.io/downloads)")
      print("(try rerunning this script under conda if you are using for system's python distribution)")
  else:
      major, minor, patch = map(int, conda.__version__.split('.'))
      if major > 4 or (major == 4 and minor >= 1):
          pass
      else:
          print("please update conda ($ conda update conda), we need conda >= 4.1.0")
          exit(1)
  
  try:
      import matplotlib
  except ImportError:
      print("matplotlib is required for the tutorial")
  
  try:
      import notebook
  except ImportError:
      print("notebook (jupyter notebook) is required for the tutorial")
  
subject: Make test script more extensive (conda, notebook, matplotlib)