Well, the train and rail models made the program crash for me, so something is up there.
Anyway - I think your motion path egg file isn’t quite right.
I replaced yours with a different one, and the train moved ok. So the code itself works.
I used wezu’s egg file from here:
[[SOLVED] Mopath: Mopath has no curves)