code: def populate_schema_objects(self, schema, obj_type):
          
          metadata = self.dbmetadata[obj_type]
          schema = schema or self.dbname
  
          try:
              objects = metadata[schema].keys()
          except KeyError:
              # schema doesn't exist
              objects = []
  
          return objects
docs: Returns list of tables or functions for a (optional) schema