Use requests instead of urllib2

Using requests instead of urllib2 will prevent an exception from being raised in the case of a 404. For example, this fixes #16.

I also added some minor pep8 whitespace changes.