fix filter function for python3
Merge branch 'hotfix/0.1'