Workaround for CPython strptime thread safety bug

http://bugs.python.org/issue7980