fix up get_pypi_json method