made everything dictionaries

because python json module can't handle objects