Iran is calling an international resolution on its nuclear program politically motivated and illegal , but does not rule out future negotiations with the West .