naive python version of two sum