Output request headers when initial test for baseurl fails. Fixes #130

Add timeout to requests.get() calls
Fix pep8 issues