writerfilter: convert factoryinc to Python

Change-Id: I23ee4844fcc034f1d586c10d6a16db71a4db5363