python class-related work