def finalize(self):
        """ printing some final information from last analyse """
        currentFile = self.current[FILE]

        for message in sorted(currentFile.messages):
            print(message[1])

        functions = [name for name in currentFile.functions \
                     if len(currentFile.functions[name]["argumentNames"]) == 0 or \
                        not currentFile.functions[name]["argumentNames"][0] == 'self']

        print("...%3d lines processed (with %d blank lines)" \
              % (currentFile.totalLines, currentFile.totalBlankLines))
        print("...%3d function(s) processed" % len(functions))
        print("...%3d method(s) processed" % (len(currentFile.functions) - len(functions)))
        print("...%3d warning(s) - %d error(s)" \
              % (currentFile.warnings, currentFile.errors))
 printing some final information from last analyse 
recipes/Python/578023_Simple_Python_Checker/recipe-578023.py