dictionary = {}
with open('filename', 'r', encoding="utf-8") as f:
for l in f:
dictionary[l.strip()] = ''
cat << EOF | psql ---params
BEGIN;
`pg_dump ----something`
update table .... statement ...;
END;
EOF
stackoverflow.com/questions/2500436/how-does-cat-e...