Understanding Classes And Objects In Python Code Generator