code: def available_sources(sources):
      
      for dirs, name in sources:
          for directory in dirs:
              fn = os.path.join(directory, name) + '.py'
              if os.path.isfile(fn):
                  yield fn
docs: Yield the sources that are present.