Adjusted non-Python 3 compliant statements.
Adjust tests to use pytest-localserver.