gdal: a little tweaking to accomodate python3