Given a directory, and a pattern of files like "garbage.txt" or
    "*pyc" inside it, remove them.

    Try not to delete the whole OS while you're at it.

def remove_pattern(root, pat, verbose=True):
    """
    Given a directory, and a pattern of files like "garbage.txt" or
    "*pyc" inside it, remove them.

    Try not to delete the whole OS while you're at it.
    """
    print("removing pattern", root, pat)
    combined = root + pat
    print('combined', combined)
    items = glob.glob(combined)
    print('items', items)
    for item in items:
        print('item', item)
        if is_inside(root, item):
            remove(item)
        elif verbose:
            print("{item} is not inside {root}! Skipping.".format(**vars()))