Add old OGR warning and test Exceptions set.

Return test for gdal use exceptions already being set and add warning for old gdal/ogr versions without python exceptions.