Replace list(dict.iterkeys()) with list(dict). The call to iterkeys() is useless and the iterkeys() method of dictionaries was removed in Python 3 Change-Id: I16733643d4b92fe8134eec2549bbd679fe75fb9c