class LED(TinyObj): def on(): pass def off(): pass class MyRoot(BaseObj): led = LED()