Search 2D matrix python accpted