Template library for Python for multi-language code generation