panel rewritten in py3k and server in cpp