1 def run(machine): 2 host = hosts.create_host(machine) 3 print host.is_up() 4 host.reboot() 5 6 job.parallel_simple(run, machines) 7