Fix tmp file. Fix total_seconds (Python 2.6.x)