corrected python version of mash