Switch tests to requests
Convert to Python 3