added time handling utilities in python 2.x