synchronous response from python