OK nice, I will have a look around your repo.
The nice thing about PCells in klayout is they're just straight python or Ruby which gives a lot of power. I don't think it would be hard at all to juaf wrap the klayout python interface around your library. Will have a look at it a bit further this evening, maybe we can combine our efforts in that way