added chmod to agent key in tasks.py