How to launch elevated privileges window?

I found my solution on Stack Overflow! Hope this helps someone else…

import os
os.system("pkexec ls -l")

https://stackoverflow.com/questions/60741131/how-to-launch-linux-elevated-privileges-window-from-python/60741776#60741776


EDIT: I take it back. Apparently, pkexec is not allowed.