Attribute Error in handler.py

Attribute Error in handler.py

When i try to calling the .get_all_modules() it returns this error - ''AttributeError' object has no attribute 'message'`

Below is my code and config
CODE:

crmsdk.ZCRMRestClient.initialize(config)
resp = crmsdk.ZCRMRestClient.get_instance().get_all_modules()
modules = resp.status_code

Here is my config 


config = {
    "apiBaseUrl": "https://www.zohoapis.com",
    "apiVersion":"v2",
    "currentUserEmail":"my_mail",
    "sandbox":"True",
    "applicationLogFilePath":"",
    "client_id":"********",
    "client_secret":*****************",
    "redirect_uri":"https://www.abc.com",
    "accounts_url":"https://accounts.zoho.com",
    "token_persistence_path":"",
    "access_type":"online",

    "mysql_username":"",
    "mysql_password":"",
    "mysql_port":"3306",

    "persistence_handler_class" : "Custom",
    "persistence_handler_path": "/Users/Zoho/Desktop/PythonSDK/CustomPersistance.py"
}