Fix mm3 hash tests under python3