Fixes to make compatible with Python 3.
Implementing %I in strftime().