def get_pynast_version():
 try:
  import pynast
  return pynast.__version__
 except ImportError:
  return None

def get_pynast_version ( ) : try : import pynast return pynast . __version__ except ImportError : return None
return pynast version string or none if pynast is not installed .