Update the python agent event publisher with instance_id

Please review and merge