def task1(): # Task 1 a = fileMK.stemText(t[0]) m = re.findall("[ \(\)<>]([a-zA-Z]{4})[ \(\)<>]", a) if m: mDict = fileMK.unsortedDictFromWords(m) p = outputPath + "task1" fileMK.writeTextToFile(str(sorted(mDict.keys())), p)