Javascript Generate Query String To Json Python