Replace urlopen with time.sleep because it is more consistent with expectations