Split pypi_mirror into its own class

We want to run more than one of these, and not all on static.o.o,
so as a first step, split the relevant code out into a class.

Change-Id: I6b3dd294bef3c89ad6353ecdae815ebd6825b0e1
Merge "Split pypi_mirror into its own class"