Python Dynamically Add Base Class Creation