Write PIL image to EXR using OpenEXR in Python

How to Write a PIL Image to EXR Format Using OpenEXR in Python