Initialize pyFunc only once per sentence.