See Python Classes, with an emphasis on new-style classes. (Skip the sections on iterators, generators, and generator expressions.)