code: func (ps *pythonSecurity) generate(dir string) error {
  	filename := filepath.Join(dir, ps.FileName)
  	return commons.GenerateFile(ps, ps.template, ps.templateName, filename, true)
  }
docs: // generate security scheme representation in python.
  // security scheme is generated as a middleware