Fix legacy "=" filter also in Python

This went unnoticed, should have been part of the equivalent Haskell patch series from ealier today.