Needed to flip arguments for isinstance() in server.py