def GetNextLine(File):
    """Get the next line in a file ignoring lines beginning with *
    a space or empty lines. If the end of file is reached None is returned
    otherwise a string with the line will be returned."""
    while 1:
        Line = File.readline()
        if len(Line) == 0:
            return None
        elif Line[0] == '*' or Line[0] == '\n' or Line[0] == ' ':
            continue
        else:
            return Line