use python3 in helper script embedded in bash