DSL to Python OOP binding