def __new__(mcs, name, base, attr):
    attr['__tablename__'] = name.lower()
attr['id'] = Column(Integer, primary_key=True)
attr['name'] = Column(String)
return super().__new__(mcs, name, base, attr)
SQLAlchemy: avoiding repetition in declarative style class definition