fixed python3 support, was broken