Move codelist documentation generation to python