Even if you find a Python 2.7 syntax version, it likely has native code dependencies that mean it won't work in Ignition's Jython environment.
Some other folks with the same problem as you lead to this discussion thread where someone has code that may solve your problem: