Some Python 3 fixes.
Check remote checksum before downloading.