iteritems to items for dictionary iterations (python 2.7 -> 3.4)