'Handles an incoming request in the form of a Python data structure.
Returns a Python data structure for commands, or a :class:`None` for
notifications.
:param request: the unserialized JSON-RPC request
:type request: dict
:rtype: dict, list, or :class:`None`'

def handle_data(self, request):

    if isinstance(request, list):
        return self._handle_batch(request)
    else:
        return self._handle_single_request(request)
