timeconv class for python