Oil heads for weekly gain, supported by Middle East tensions