Postgresql Run Python Script From Terminal