Postgres Sql Not In Function In Python Meaning