Make long comment easier to read.
Exit early in function that searches for a valid netrc file.
Remove dependency on OrderedDict for compatibility with Python 2.6.

OrderedDicts are only available starting from Python 2.7.
Remove assigned but not used variable.
Fix some PEP-8 conventions.