[python] Python: Finding differences between elements of a list