code: func GeneratePythonCapnpClasses(apiDef *raml.APIDefinition, dir string) error {
  	// TODO : get rid of this global variables
  	globAPIDef = apiDef
  
  	if err := capnp.GenerateCapnp(apiDef, dir, "", ""); err != nil {
  		return err
  	}
  
  	_, err := GenerateAllClasses(apiDef, dir, true)
  	return err
  }
docs: // GeneratePythonCapnpClasses generates python classes from a raml definition along with function to load binaries from/to capnp
  // and generates the needed capnp schemas