import string


def valid_filename(filename):
    """Check if a filename is validate.
    """
    valid_chars = "-_.() %s%s" % (string.ascii_letters, string.digits)
    return not any([c for c in filename if c not in valid_chars])