[EDIT] I have devised some code for image comparison. The matching part is still a bit flawed and I would love some assitance. The project can be found at - GitHub.>
Use cv2.absDiff to compute the difference between the pictures and cv2.sumElems to get the sum of all pixels differences.
cv2.absDiff
cv2.sumElems
Then invent a threshold by which you judge wether two images are similar or not.