created a new module to get the headers with urllib2. In the future I'll evaluate to substitute requests module if I can use only standard library modules. Included a human readable list of headers to the output .txt file. More code clean up.