def _submit_topology(cmd_args, app):
cfg = app.cfg<EOL>if cmd_args.create_bundle:<EOL><INDENT>ctxtype = ctx.ContextTypes.BUNDLE<EOL><DEDENT>elif cmd_args.service_name:<EOL><INDENT>cfg[ctx.ConfigParams.FORCE_REMOTE_BUILD] = True<EOL>cfg[ctx.ConfigParams.SERVICE_NAME] = cmd_args.service_name<EOL>ctxtype = ctx.ContextTypes.STREAMING_ANALYTICS_SERVICE<EOL><DEDENT>sr = ctx.submit(ctxtype, app.app, cfg)<EOL>return sr<EOL>
Submit a Python topology to the service.
    This includes an SPL main composite wrapped in a Python topology.