code: def on_packet(packet):
      
      print("Framenumber: {}".format(packet.framenumber))
      header, markers = packet.get_3d_markers()
      print("Component info: {}".format(header))
      for marker in markers:
          print("\t", marker)
docs: Callback function that is called everytime a data packet arrives from QTM