Better list comprehensions in files_stats.py