os.setuid
Set the current process’s user id.
https://docs.python.org/3/library/os.html