[PATCHv2] python: add the support for request