def select_supported_python(installed_pythons):
 for python in installed_pythons:
  if (python[(-3):] in SUPPORTED_PYTHON_VERS):
   return python

def select_supported_python ( installed_pythons ) : for python in installed_pythons : if ( python [ ( - 3 ) : ] in SUPPORTED_PYTHON_VERS ) : return python
select a supported python from a list .