Helper classes and functions for Python OpenCV