new-style class format for PyRiot