simplify get_latest_version sorting logic
add base class to PyPI-s
add get_all_packages