Postgresql Run Python Code In Terminal