keys does not support indexing in python3