import time time.sleep(0.1) # simulate slow code