Create Json From Sql Query Python Programming