Get Httpclient Post Request As String In Python Function Definition