ticket = type(classname, (Base, HistoricDay), {'__tablename__': ticket +
    '_daily_history'})
ticket.__repr__ = build_daily_history_table_repr
return ticket
How to create only one table with SQLAlchemy?