How to Speed up a Python Program 114 000 times