Simplify motgrampy script