<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def maybe_decode_payload(payload, content_type='application/nanoservice-tlv', decode_b64=True):
 """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: """

    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