Convert Normal Map to Displacement Map?

I have a normal texture, how to convert to (Displacement Map)height map?

The tool I use is Python OpenGL

This post explains how to do this via deconvolution.