use urlretrieve instead of urlopen