Added dictionary to hold request.get.return_value.text data
Replaced all AttributeError with KeyError.
AttributeError should never be raised. If data received from server is malformed, a KeyError exception will be raised from Struct class.