Fix error when using filters in Python 3.3