Do you have a thousands of lines of debug code slowing you down…use __debug__ and optimize it out with -O command line option.