What is the expected behaviour? Why are you calling time.sleep(5)?