def print_head(i):
    switch = '192.168.182.170'
response = os.system('ping -c 5 ' + switch)
processes = [Process(target=print_head, args=(i,)) for i in range(1, 10)]
for process in processes:
    process.start()
параллельный пинг с использованием gevent