old_contents: from vigranumpycmodule import *
  from arraytypes import *
  
  try:
      from vigranumpyfourier import *
  except:
      print "vigranumpyfourier not found"
  
  # auto-generate code for  additional Kernel generators:
  for k in dir(Kernel1D):
     if not k.startswith('init'): continue;
     code = '''#@staticmethod
  def %sKernel(*args):
        k = Kernel1D()
        k.%s(*args)
        return k
        %sKernel.__doc__ = Kernel1D.%s.__doc__
        Kernel1D.%sKernel=%sKernel
  ''' % (k,k,k,k,k,k)
     exec code
     print code
  
new_contents: from vigranumpycmodule import *
  from arraytypes import *
  
  try:
      from vigranumpyfourier import *
  except:
      print "vigranumpyfourier not found"
  
  # auto-generate code for  additional Kernel generators:
  for k in dir(Kernel1D):
     if not k.startswith('init'): continue;
     code = '''@staticmethod
  def %sKernel(*args):
        k = Kernel1D()
        k.%s(*args)
        return k
  Kernel1D.%sKernel=%sKernel
  Kernel1D.%sKernel.__doc__ = Kernel1D.%s.__doc__
  ''' % (k,k,k,k,k,k)
     exec code
  
subject: add autogenerated kernel initializer-functions to Kernel class (as static methods)