writerfilter: convert factoryimpl to Python

Change-Id: I2065215db5da0a379e902a74eff419d5c6068d21