def getNextLine(fs):
    """
    Return the next non-blank non-comment line.
    Returns None if EOF.
    """
    while True:
        ln = fs.readline().decode('ascii', 'ignore').strip()
        if ln is None:  # EOF
            return None

        print(ln)
        if ln and not ln.startswith('#'):
            return ln