Find further resources about KLayout and it's infrastructure here
This is the server copy of the documentation delivered with KLayout
See here for a collection of documentation links for script programming