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