def print_item_callback(item):
    """Print an item callback, used by &listen."""
    print('&listen [{}, {}={}]'.format(
        item.get('cmd', ''),
        item.get('id', ''),
        item.get('data', '')))
Print an item callback, used by &listen.