fix python-3 compatibility for euse bug 364081