began work on agent.py