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