old_contents: from portality import models
  from portality.core import app
  import esprit
  import re
  
  def rewrite_keywords(journal_like):
      bib = journal_like.bibjson()
      kwords = [k.lower() for k in bib.keywords]
      bib.set_keywords(kwords)
  
new_contents: def rewrite_keywords(journal_like):
      bib = journal_like.bibjson()
      kwords = [k.lower() for k in bib.keywords]
      bib.set_keywords(kwords)
  
subject: remove unused imports