'Format the return value of this command in a human-friendly way.'

def format_response(self, response):

    if (not self.returns):
        return (u'ok.' if (response is None) else response)
    if callable(self.returns):
        return self.returns(response)
    return self.returns.format(response)
