import psycopg2
from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT
con = psql.connect(dbname='postgres', user=self.user_name, host='',
    password=self.password)
Create a Postgres database using python