Simplify creation of XMLRPC object
Remove lots of duplicated code in each real_do block