PythonServer Side ProgrammingProgramming. Everything in Python is an object including classes. All classes are instances of a class called “type”. The type object is also an instance of type class . You can inspect the inheritance hierarchy of class by examining the __bases__ attribute of a class object.