Update screenshot.py

Changed how the difference between two screenshots is determined. It uses root mean square (code copied from: http://code.activestate.com/recipes/577630-comparing-two-images/) to determine how much it has changed. This overcomes the problem of a blinking network activity icon or blinking cursor from generating multiple screenshots.