Video analysis of traffic using OpenCV and Python