Oil heads for weekly loss as geopolitical risk premium wanes