writerfilter: convert factoryimpl_ns to Python

Change-Id: Ia2380a23e31583f40a368168bc09d7fddd3e4ab7