Modified parameters.py for Python3

Changed iteritems() to the Python3 equivalent.