rtp-to-file.py now records trials