Parses the item(s) returned by your handler implementation.

        Handlers may return a single item (payload), or a tuple that gets
        passed to the Response class __init__ method of your HTTP layer.

        _parse_handler_result separates the payload from the rest the tuple,
        as well as providing the tuple so that it can be re-composed after
        the payload has been run through the `_returns` Resource's renderer.

def _parse_handler_result(self, result):
        """Parses the item(s) returned by your handler implementation.

        Handlers may return a single item (payload), or a tuple that gets
        passed to the Response class __init__ method of your HTTP layer.

        _parse_handler_result separates the payload from the rest the tuple,
        as well as providing the tuple so that it can be re-composed after
        the payload has been run through the `_returns` Resource's renderer.
        """
        if isinstance(result, (list, tuple)):
            payload = result[0]
            list_result = list(result)
        else:
            payload = result
            list_result = [""]
        return payload, list_result