Class for python