how to make a sleep calculator in Python