filter fix for python3