I know how to use omniidl using command line arguments. But i want to write a python program that calls functions from omniidl module, and some how returns me the AST tree.

please help, its urgent