After changing the background correctly with the famous ctypes
ctypes
import ctypes ctypes.windll.user32.SystemParametersInfoW(SPI_SETDESKWALLPAPER, 0,