need to import socket module in pupil_server for this to work.