Use list comprehension for Python 3