I have two SQLAlchemy ORM tables related via a M2M table that has some flags to indicate the type of relationship each M2M row represents. I want to create convenience class