Update agent.py

started working on record_log_activity