Instead of doing:
import time

and

from time import sleep

, just call time.sleep(X) everywhere...