agent.py import causes a SystemError