code: def validate_args(args):
      
      if not os.path.isdir(args.directory):
          print "Directory {} does not exist".format(args.directory)
          sys.exit(5)
      return args
docs: Call all required validation functions
      :param args:
      :return: