opencv: support Python versions