wsgi: When encountering error in Python code, print traceback to logs.