Just playing with a new return style to suit rasterio
Changed the return style from (ystart,yend,xstart,xend) to ((ystart,yend),(xstart,xend)). Also added a Generator keyword in which case the function will return a generator object rather than a list.