Workaround for Python 2.5 time.