def keep_file(filepath):
    """Decide if we keep the filepath, solely by exlcusion of end of path

    This is primarily to avoid keeping .pyc files

    >>> keep_file('/foo.pyc')
    False

    """
    ignoredpathendings = ['.pyc',]
    for ending in ignoredpathendings:
        if filepath.endswith(ending):
            return False
    return True