make python_readlink python3 compliant
add "set -eu"