def METHOD_NAME(filename):
    f = open(filename)
    text = f.read()
    f.close()
    header = python_header
    # Check (exact match only)
    if (text.find(header) == -1):
        # print the first 10 lines or so of the file
        if global_options.update == False: # Report only
            print(filename + ' does not contain an up to date header')
            if global_options.verbose == True:
                print('>'*40, '\n', '\n'.join((text.split('\n', 10))[:10]), '\n'*5)
        else:
            # Save off the shebang line if it exists
            m = re.match(r'#!.*\n', text)
            shebang = ''
            if m:
                shebang = m.group(0)
                text = re.sub(r'^.*\n', '', text)
            # Save off any pytlint disable directives
            m = re.match(r'\A#pylint:\s+disable.*\n', text)
            pylint_disable = ''
            if m:
                pylint_disable = m.group(0)
                text = re.sub(r'^.*\n', '', text)
            pylint_enable = False
            if re.search(r'#pylint: enable=missing-docstring', text) != None:
                pylint_enable = True
            # Make sure any previous box-style header version is removed
            text = re.sub(r'\A(?:#.*#\n)*', '', text)
            # Make sure any previous version of the new header is removed
            text = re.sub(r'^#\*.*\n', '', text, flags=re.M)
            # Discard any pylint missing-docstring commands
            text = re.sub(r'\A#pylint:.*missing-docstring.*\n', '', text)
            # Now cleanup extra blank lines at the beginning of the file
            text = re.sub(r'\A(^\s*\n)', '', text)
            # Update
            f = open(filename + '~tmp', 'w')
            f.write(shebang)
            f.write(pylint_disable)
            f.write(header + '\n')
            if pylint_enable:
                f.write('#pylint: enable=missing-docstring\n')
            if len(text) != 0:
                f.write('\n' + text)
            f.close()
            shutil.copystat(filename, filename + '~tmp')
            os.rename(filename + '~tmp', filename)