Python Dynamically Add Base Class Creation In Python For Loops