How to get printed response from async function in Python I want to get printed response of sync function. for that am using, StringIO.