fix some minor issues found by pycharm code checker
_update: remove unused agent param