def _id_type(ityp):
 if (ityp.lower() == 'rackspace'):
  ityp = 'rax_identity.RaxIdentity'
 elif (ityp.lower() == 'keystone'):
  ityp = 'keystone_identity.KeystoneIdentity'
 return ityp

def _id_type ( ityp ) : if ( ityp . lower ( ) == 'rackspace' ) : ityp = 'rax_identity.RaxIdentity' elif ( ityp . lower ( ) == 'keystone' ) : ityp = 'keystone_identity.KeystoneIdentity' return ityp
allow for shorthand names for the most common types .