old_contents: # -*- coding: utf-8 -*-
  from mfr.core import FileHandler, get_file_extension
  from mfr_pdf.render import render_pdf_mako
  import PyPDF2
  
  
  EXTENSIONS = ['.pdf']
  
  
  class Handler(FileHandler):
      """The image file handler."""
      renderers = {
          'html': render_pdf_mako,
      }
  
      exporters = {}
  
      def detect(self, fp):
          return get_file_extension(fp.name) in EXTENSIONS
  
new_contents: # -*- coding: utf-8 -*-
  from mfr.core import FileHandler, get_file_extension
  from mfr_pdf.render import render_pdf_mako
  import PyPDF2
  
  
  EXTENSIONS = ['.pdf']
  
  
  class Handler(FileHandler):
      """The pdf file handler."""
      renderers = {
          'html': render_pdf_mako,
      }
  
      exporters = {}
  
      def detect(self, fp):
          return get_file_extension(fp.name) in EXTENSIONS
  
subject: Update __init__.py