minor changes to pyfilter