[PATCH v2 21/23] python: Refactor build of dictionary entries for py_read_resource