How to shutdown system without input password in Authenticate with python

Hello

I want to shutdown my Nvidia Linux System by using python like this:

import os
os.system('halt')

then the Authenticate appears and shows that I have to input my password to start ‘halt.target’.
but how can i shut down my system without input password every time with python.
Thank you.

import os
os.system('shutdown -h now')