The tool doesn't work anymore, because Apple updated it's tooling.
Error
Notarization of MacOS applications using altool has been decommissioned. Please use notarytool. See: https://developer.apple.com/documentation/technotes/tn3147-migrating-to-the-latest-notarization-tool

The tool doesn't work anymore, because Apple updated it's tooling.