def WalkDir(dir):
    # Get a list of files that match *.py*
    GLOB_PATTERN = os.path.join(dir, "*.[p][y]*")
    pathlist = glob.glob(GLOB_PATTERN)
    # Now filter out all but py and pyw
    filterlist = [x for x in pathlist 
                        if x.endswith('.py')
                        or x.endswith('.pyw')]
    if filterlist != []:
        # if we have a list send it
        return filterlist
    else:
        return None
Return extra attributes to place on each item (i.e. item/entry) element.
dataset/ETHPy150Open anandology/pyjamas/examples/showcase/pyColourize.py/WalkDir--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/utils/feedgenerator.py/SyndicationFeed.item_attributes