Use TemoraryFile to avoid using urlopen() twice on same url