Draft EXR to JPG Gamma

When converting an EXR to a JPG using the Draft plugin in deadline, i noticed there is an issue with gamma. Is there a way to apply a gamma correction so the linear exr’s create jpg’s with an SRGB colorspace?

img = Draft.Image.ReadFromFile(f)
img.WriteToFile(outfile)

Sure, there are some examples from documentation

https://docs.thinkboxsoftware.com/products/draft/1.6/Documentation/Cookbook/ColorOperations/ApplyAGammaCorrection.html

https://docs.thinkboxsoftware.com/products/draft/1.6/Documentation/Cookbook/ColorOperations/BakingAColorTransform.html