Now it compiles, (with scons on one linux.)
fixed some typos and syntax mistakes.
almost generate trajectories successfully and now have valid sql code
for counting appearances in trajectories. Getting close.