text: ﻿# -*- coding: utf-8 -*-
  """
  # before
      defm fire x y z
  
  # after
      def fire(self,x,y,z):
          """docstring for fire"""
          |
  """
  def Main(argv):
      head = "def %s(self," % argv[1]
      body = ",".join(argv[2:])
      tail = "):\n\t";
      doc  = '''"""docstring for %s"""\n\t%%|''' % argv[1]
      print(head + body + tail + doc)
  
  Main(sys.argv[1:])
  