writerfilter: convert resourceids to Python

Change-Id: If138bb3de8815f9d24aa1db10543b904792a0b37