Make DiskImage Python 2.x friendly