Wayland - Set the window class of a python script?

Think I have found a solution - compile the script with nuitka, it is then set to the name of the binary, rather than python3.