new logic for exporting rasters using python only. issue #71 solution