def print_and_exec(cmd):
 print '\r                                                        \r',
 stdout.flush()
 print ((((((O + ' [!] ') + W) + 'executing: ') + O) + ' '.join(cmd)) + W),
 stdout.flush()
 call(cmd, stdout=DN, stderr=DN)
 time.sleep(0.1)

def print_and_exec ( cmd ) : print '\r                                                        \r' , stdout . flush ( ) print ( ( ( ( ( ( O + ' [!] ' ) + W ) + 'executing: ' ) + O ) + ' ' . join ( cmd ) ) + W ) , stdout . flush ( ) call ( cmd , stdout = DN , stderr = DN ) time . sleep ( 0.1 )
prints and executes command "cmd" .