Py3k locals() does not work in list comprehensions.