Fix list comprehensions for flake8 F812