currently I have a src/agent.py file and I deploy the agent using python src.agent.py download-files, lk agent create and lk agent deploy. Instead of using the CLI manually, I would like that one of my python endpoints creates and deploys the agent, I would I go about doing this