WIP - Motion primitives script writes a properly formatted .mprim file