fix python3 issue with OrderedDict (works on py2)
Merge pull request #2 from mvcisback/master

Use items instead of viewitems