fix gentoo-compare script for python3