Fix compilation of python module and imgproc test