Just support lists for search

This way the code is more readable and we don't expect users to stuff
things like file objects in it. If they want to they have to make a list
first. Shouldn't be too long anyway.