Update datatypes.py to handle dict on properties

As a dict's iterator returns keys, sending {"key" : "value"} resulted in receiving ["key"] on dashboard
Uses dict.iteritems() instead