comform to pep8 and fix doc error in filter.py
Merge pull request #1575 from kevinjos/filterdoc

comform to pep8 and fix doc error in filter.py