abstracted dict.items() and iteritems()

took that line from werkzeug's compat file
updated tox file for python 3.3