workaround for python3 install bug
refactor