mydictionary={'keyname':'somevalue'}

for key, value in mydictionary.iteritems():
   print "key %s: value %s" % (key, value)

#for key in mydictionary:
   #print "key %s: value %s" % (key, mydictionary[key])