Python Class With Statement Postgres Create User Mapping