Fix for Python 3.x < 3.3 problem with non-atomic .pyc writing.