Switch from XML-RPC to JSON API.

PyPI XML-RPC is deprecated / broken.