code: def get_tables(self, models):
          '''
          Extract all peewee models from the passed in module
          '''
          return { obj._meta.db_table : obj for obj in
                  models.__dict__.itervalues() if
                  isinstance(obj, peewee.BaseModel) and
                  len(obj._meta.fields) > 1
              f get_tables(self, models):
          '''
          Extract all peewee models from the passed in module
          '''
          return { obj._meta.db_table : obj for obj in
                  models.__dict__.itervalues() if
                  isinstance(obj, peewee.BaseModel) and
                  len(obj._meta.fields) > 1
              }
docs: Extract all peewee models from the passed in module