Python and return attributes in `postproxy`