working on Python class.