Write code to remove non-flying sections from drosophila trajectories.