Getting attributes of a python class
The inspect module provides several useful functions to help get information about live objects such as modules, classes, methods, functions, tracebacks, frame objects, and code objects. The getmembers(object) method return all the members of an object in a list of (name, value) pairs sorted by name.