By the way, if you do go down the route of doing 'natively' in klayout, I think it probably makes sense to create a yaml like file with all the DRC info in it and reference that rather than the constants in the actual implementation that both that half-finished PCell generator and the DRC setup uses. Was my plan anyway before I decided to change direction