Simplify list(x.iterkeys()) to list(x)