backend: convert exception handling to Py3 style
xmlrpc: convert exception handling to Py3 style