Py3: Don't use dict.keys()[0], dict.values()[0] or dict.items()[0]

In Py3 'dict_values', 'dict_keys', 'dict_items' objects don't support
indexing.

Change-Id: Ia049c08ba2c042403fb2a6763aaa4a682477a330
3 files changed