ported BasicOffense122 to python