Fix pyexec and modmath