fix in python pyGm