Update gen_vocab.py to be python3 compatible (#4567)
Update gen_vocab.py to be python3 compatible (#4567)

Dictionary's .iteritem() raises an error in Python3.
Replaced it with iteritem from six library.
alexgorban/models,alexgorban/models,tombstone/models,derekjchow/models,alexgorban/models,derekjchow/models,alexgorban/models,alexgorban/models,tombstone/models,derekjchow/models,tombstone/models,derekjchow/models,tombstone/models,derekjchow/models,tombstone/models,tombstone/models