Updated to new opencv flags. fixed py2to3 reduce