py3k locals() does not work in list comprehensions.
py3k uses Unicode strings and removes file()