Use urllib2 instead of urllib. Define a timeout for urlopen

Replace urllib with urllib2, since the former doesn't support timeouts

Fixes #101