use time.time() instead of datetime for time.sleep()