Terrorist attacks on the west are largely motivated by politics, specifically by the US's wars in the middle east.