Fix for --exclude option not working in py3

Method iter_filenames uses filter(), which returns an iterable in python3.
This iterable is consumed at the first item yielded by walk_paths,
'exclude' being empty for all paths after that.