Convert xmpp-register action to python.