Create Minimum Path Sum (pyemma)