Use items instead of viewitems

While `OrderedDict.items` != `OrderedDict.viewitems` in py2 (`viewitems` being py3 version), I believe for this particular case it doesn't matter (and items works on both versions).

Changing this line allowed me to use the parser in python3