Fixing test server so it works with Python 3