Added tag 1.4.1 for changeset 9a5f26d7df8e
Bumped to 1.4.2 in preparation for next release.
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.