Same meaning for psycopg2, but removing explicit localhost allows unix domain user auth sans password
Replacing all instances of env.run with virtenv_exec, which is logically equivalent in the current code base and a bit more clear.
removing a function that is probably important but not at all defined.