Pgsql Update Set In Python Add To Dictionary