resolve class members lazily on first usage
Submitted by Tomeu Vizoso
Link to original bug (#640650)
Description
inside getattr because some classes can be very big and only a very small part of the API will be used in typical applications. This will save startup time and memory at the expense of a little more overhead on the first invocation of a method.