This was fixed in main but needs to be put into 4-2-stable: https://github.com/irods/irods_rule_engine_plugin_python/commit/a00b5d754c46124d6ef5793ab744235d224b83ea
This was fixed in main but needs to be put into 4-2-stable: a00b5d7