for python class