Massive performance boost using Python list comprehension.