minor enhancements ... now it is working in pure python work.
let's move it to cython
start cythonization of distortion correction