def METHOD_NAME(self, text, uroman_pl):
    iso = "xxx"
    with tempfile.NamedTemporaryFile() as tf, \
         tempfile.NamedTemporaryFile() as tf2:
        with open(tf.name, "w") as f:
            f.write("\n".join([text]))
        cmd = f"perl " + uroman_pl
        cmd += f" -l {iso} "
        cmd +=  f" < {tf.name} > {tf2.name}"
        os.system(cmd)
        outtexts = []
        with open(tf2.name) as f:
            for line in f:
                line =  re.sub(r"\s+", " ", line).strip()
                outtexts.append(line)
        outtext = outtexts[0]
    return outtext