Added pytest script and test file. Changed EscapeText