A man has been jailed after attempting to set fire to the Scottish Parliament (David Cheskin/PA)