#NEWLINE# def ping( host ) : #NEWLINE# #INDENT# ping = subprocess . Popen ( [ 'ping' , '-v' , '4' , host ] , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) #NEWLINE# ( out , error ) = ping . communicate ( ) #NEWLINE# return out