Pass verify_ssl=False to the gmusic api init call.
Remove unused variables LOGIN_KEY and PASSWORD_KEY.
Perform a None check before creating the keyring, as the default keyring is None and can't be created.