old_contents: from tyk.decorators import *
  
  @Pre
  def AddSomeHeader(request, session):
      # request['Body'] = 'tyk=python'
      request['SetHeaders']['SomeHeader'] = 'python2'
      return request, session
  
  def NotARealHandler():
      pass
  
new_contents: from tyk.decorators import *
  from tyk.gateway import TykGateway as tyk
  
  @Pre
  def AddSomeHeader(request, session):
      request['SetHeaders']['SomeHeader'] = 'python'
      tyk.store_data( "cool_key", "cool_value", 300 )
      return request, session
  
  def NotARealHandler():
      pass
  
subject: Update middleware syntax with "TykGateway"