Run Python in optimized mode when not starting in debug or without dev mode (this just removes the asserts from the compiled byte code).