fix problem with list(bool)

"filter" was used as a varname, which caused 2->3 compatibility issues when filter was replaced with list(filter.
Update filechooser.py
Merge pull request #2106 from sirpercival/patch-1

Fix problem with list(bool) in filechooser.py