comform to pep8 and fix doc error in filter.py