bugfix in SampleTrajectory.py

I thought I was in my fork, but apparently I wasn't... Anyway, it's a simple fix for #433