import os

def files_from_directories(directories, filetype):
    """Yield files of filetype from all directories given."""
for directory in directories:
    pass
pythonic way to access each file in a list of directories