document for python class special function and attribute