code: def get_code_version_numbers(cp):
      
      code_version_dict = {}
      for _, value in cp.items('executables'):
          _, exe_name = os.path.split(value)
          version_string = None
          if value.startswith('gsiftp://') or value.startswith('http://'):
              code_version_dict[exe_name] = "Using bundle downloaded from %s" % value
          else:
              try:
                  if value.startswith('file://'):
                      value = value[7:]
                  version_string = subprocess.check_output([value, '--version'],
                                                          stderr=subprocess.STDOUT) 
              except subprocess.CalledProcessError:
                  version_string = "Executable fails on %s --version" % (value)
              except OSError:
                  version_string = "Executable doesn't seem to exist(!)"
              code_version_dict[exe_name] = version_string
      return code_version_dict
docs: Will extract the version information from the executables listed in
      the executable section of the supplied ConfigParser object.
  
      Returns
      --------
      dict
          A dictionary keyed by the executable name with values giving the
          version string for each executable.