Stop using internal PyEval functions and optimise how calls are made.