shad/MT/hw2.p2: add scripts helpers.