def skip_comments_and_empty(f):
    """
    Skip comments and empty lines
    :param f: the tsv file handler
    :return: the first not empty line with no comments
    """
    line = f.readline()
    while line.startswith('#') or line == '\n':
        line = f.readline()
    return line
