Pyste and class methods