'Process a command result from the user.
Arguments:
payload -- Either a single item, such as a form, or a list
of items or forms if more than one form was
provided to the user. The payload may be any
stanza, such as jabber:x:oob for out of band
data, or jabber:x:data for typical data forms.
session -- A dictionary of data relevant to the command
session. Additional, custom data may be saved
here to persist across handler callbacks.'

def _handle_command_complete(self, payload, session):

    form = payload
    greeting = form['values']['greeting']
    self.send_message(mto=session['from'], mbody=('%s,    World!' % greeting), mtype='chat')
    session['payload'] = None
    session['next'] = None
    return session
