@timhutton @dougholton @dorward @HelloAndrew
Starting with macOS 12.3, there is no Python installed anymore. You have to install Python 3.x yourself. Before that, Apple only came with the old Python 2.7 which is not able to run the script above as it uses Python 3 language features.