edits to opencv3.py