Fixing threading.pyc error