Nifty ends third consecutive week of losses on oil spike, Iran deal delay