Integration of python and postgres - ingesting py dictionary