Once the migration to Python complete and that nothing is left from Vyatta, then a new CLI will be required to replace the legacy code.
The CLI will need to load the xml.in files and provide the same interface than the users, including auto-complete and data validation.
The same code could be used and tested as a remote CLI using the HTTP API too (it would however only provide validation and auto-completion for the known XML).