Postgres Find Function In Map In Python