Fix filter dialog in python 3