writerfilter: convert factory_values to Python

Change-Id: I4dca13159a25ed137153c2a7a66ca4f87f612e87