Python: How to extend a huge class with minimum lines of code? Python: How to extend a huge class with minimum lines of code? numpy numpy