code: def get_object_key(self, key, using_name=True):
          
          try:
              if using_name:
                  return self.o_name[key].key
              else:
                  return self.o[key].key
          except KeyError:
              raise ValueError("'%s' are not found!" % key)
docs: Given a object key or name, return it's object key.