def run_as_root(command, force=False):
    if (os.geteuid() != 0):
        command.insert(0, 'sudo')
    if force:
        command.append('-y')
    return subprocess.call(command)
def run_as_root(command, force=False):
    if (os.geteuid() != 0):
        command.insert(0, 'sudo')
    if force:
        command.append('-y')
    return subprocess.call(command)