switch a couple http calls to use requests instead of urlopen. Also set ...

...a timeout value on the requests.