python code for opencv