[pyagent] Actually return value