fix filters for python3