Run python with sudo. system('sudo command') and call the script as root or via sudo...