python cmd agent