Class Object And Inheritance Python