removed import time.sleep