changing 'sleep()' to 'time.sleep()'