Reindent for clarity
Adding test capturing #116
Moved imports to the top, made them compatible with Python 2, and added a docstring.
Corrected a TypeError when reading a local package index on Python 3. Fixes #116.
Added tag 1.4.2 for changeset 274cb3beba4f
Bumped to 1.4.3 in preparation for next release.
Merge with 1.4.2