get clock from seconds in python