Write a Python program that connects to Postgres DBMS