'Check to see if the line/lines is a comment.'

def checkComments(self, line):

    if (not self.inCommentBlock):
        if ('[' in line):
            if (']' not in line):
                self.inCommentBlock = True
            else:
                return 'Nextline'
    elif (']' in line):
        if (line.rfind('[') > line.rfind(']')):
            pass
        else:
            self.inCommentBlock = False
            return 'Nextline'
    return ''
