def exit_with_parsing_error():
 print 'Invalid argument(s).'
 usage()
 sys.exit(2)

def exit_with_parsing_error ( ) : print 'Invalid argument(s).' usage ( ) sys . exit ( 2 )
report invalid arguments and usage .