#!/usr/local/bin/python2 d = {1:1, 2:2} d.viewitems()