Apparently nobody has used these since the switch to py3, xrange is now range and it needs to read the file in binary mode when generating the sha256. (cherry picked from commit 8e749efbbf)
8e749efbbf