Easily transform images using an intermediate language compiled in Python OpenCV