Fixed. ```sleep_sec = sleep_for()``` -> ```time.sleep(1)```