def stop_server(port=7000):
 conn = httplib.HTTPConnection(('localhost:%d' % port))
 conn.request('QUIT', '/')
 conn.getresponse()

def stop_server ( port = 7000 ) : conn = httplib . HTTPConnection ( ( 'localhost:%d' % port ) ) conn . request ( 'QUIT' , '/' ) conn . getresponse ( )
stops all instances for the given version of the server .