def getKeys(repository):
 repositoryClass = repository.__class__
 if ((repositoryClass == list) or (repositoryClass == tuple)):
  return range(len(repository))
 if (repositoryClass == dict):
  return repository.keys()
 return None

def getKeys ( repository ) : repositoryClass = repository . __class__ if ( ( repositoryClass == list ) or ( repositoryClass == tuple ) ) : return range ( len ( repository ) ) if ( repositoryClass == dict ) : return repository . keys ( ) return None
get keys for repository .