Python Sum Elements In 2d Image