Replaces api.py with the generated version
Write NAME_api.py and NAME_impl.py files instead of printing to stdout