Added get_response method to Text.py