python version of the Malefiz game