fix for python3 in rules