The cv2.cv is using old OpenCV2 c-binding syntax
http://answers.opencv.org/question/22465/whats-the-difference-between-cv-and-cv2-using-python2/?answer=22482#post-id-22482
https://stackoverflow.com/a/33199152
You will need
to change your calls to cv2 syntax that uses the new binding