common.sh: fix for Python 3.