Fixed #5 #6 in tw_time.py