ensure sleep() in main() is not given a negative value

In fixing #3, i allowed a negative number of seconds to be passed to ```time.sleep()```. This PR fixes this bug.