'Analyze current script with pyflakes + find todos'

def analyze_script(self, index=None):

    if self.is_analysis_done:
        return
    if (index is None):
        index = self.get_stack_index()
    if self.data:
        finfo = self.data[index]
        (run_pyflakes, run_pep8) = (self.pyflakes_enabled, self.pep8_enabled)
        if (run_pyflakes or run_pep8):
            finfo.run_code_analysis(run_pyflakes, run_pep8)
        if self.todolist_enabled:
            finfo.run_todo_finder()
    self.is_analysis_done = True
