Fixing obsolete python in grl function See merge request !56352 (cherry picked from commit 0c08406d) c5f7fac3 Fixing obsolete python in grl function