python file for track triggers