Changing the response type from the Python script