Python code impl for XML-RPC support