code: def make_dummy(instance,
                 relations        = {},
                 datetime_default = dt.strptime('1901-01-01','%Y-%m-%d'),
                 varchar_default  = "",
                 integer_default  = 0,
                 numeric_default  = 0.0,
                 *args, **kwargs
                ):
      init_data = {
          'DATETIME'        : datetime_default,
          'VARCHAR'         : varchar_default,
          'INTEGER'         : integer_default,
          'NUMERIC(50, 10)' : numeric_default,
          'TEXT'            : varchar_default,
          }
      table = type(instance)
      for col in table.__table__.columns:
          try:
              setattr(instance, col.name, kwargs[col.name])
          except KeyError:
              setattr(instance, col.name, init_data[str(col.type)])
      for k,v in relations.iteritems():
          setattr(instance, k, v[0])
      return instance