code: def iterkeys(obj):
      "Get key iterator from dictionary for Python 2 and 3"
      return iter(obj.keys()) if sys.version_info.major == 3 else obj.iterkeys(f iterkeys(obj):
      "Get key iterator from dictionary for Python 2 and 3"
      return iter(obj.keys()) if sys.version_info.major == 3 else obj.iterkeys()
docs: Get key iterator from dictionary for Python 2 and 3