must use items b/c iteritems is removed in python 3