speedup of python engine