keys() does return a list, at least in Python 2.