Fix remote requirements in Python 3

This was issue #760.
Also add a test (the exact url depends on pulling pypa/pip-test-package#2).