Adding initial implementation of custom PyFilter code.