code: def maybe_decode_payload(payload, content_type='application/nanoservice-tlv', decode_b64=True):
      
      if not payload:
          return None
  
      binary = b64decoder(payload) if decode_b64 else payload
      if content_type and 'tlv' in content_type.lower():
          return binary_tlv_to_python(bytearray(binary))
      return binary
docs: If the payload is tlv, decode it, otherwise passthrough
  
      :param payload: some data
      :param content_type: http content type
      :param decode_b64: by default, payload is assumed to be b64 encoded
      :return: