Update raster.py

trying to get rid of my mistakes, but still not done