Sum square difference.
Python