Make this script Python 3 compatible.