how to get this response in python like in bash