explicitly convert dict keys lists to support indexing in python3