Python Dynamically Add Base Class Creation In Python For All Selected Lines