first stage of cleaning up raster.py and geotiff.py, saved originals in old scripts folder