Replaced custom judge communication protocol with xmlrpclib to simplify the code and remove a lot of boilerplate.