replaced cv.smooth() with cv2.medianBlur(), doesn't work quite as well though :S