[#2037] Make postinstall.sh python one-liners python3 compliant