fix for python3 (found working with ClassicUPS