Thanks for the suggestion, both os.system("sudo sleep 5s") and time.sleep(5) seem to work intchangeably.
The led only blinks buring the few seconds of poweoff, which is the expected behavior (the rest of the time it just stays on).
Thanks again for your suggestions, I've been trying to make this script work for quite some time and with your help is was much easier than expected!