The function createSticher() is depracated in OpenCV 4, you should use the function
csv.Stitcher_create()
You also seem to have your file named 'import cv2.py', consider changing this for best naming practices.
Have a great day!