xxxxxxxxxx
import subprocess
# Replace 'new_password' with the desired new password
new_password = 'new_password'
# Execute the chpasswd command to update the Webmin password
subprocess.run(['echo', f'root:{new_password}'] | ['chpasswd'], shell=True)