Pymallet class with initial functions