Postgres Connection String Python Replace Characters