converted agent to proper python package