def METHOD_NAME(commands):
    process = Popen(commands, stdout=PIPE, stderr=STDOUT, **kwargs)
    stdout, _ = process.communicate()
    if process.returncode != 0:
        msg = "command failed:\n%s" % stdout
        _err(msg)
        return False
    if self.settings.print_output:
        print(stdout.strip())
    return True