Make model hash computation and comparison py3 compatible
Make model hash computation and comparison py3 compatible

Reviewed By: ashwinb

Differential Revision: D10223289

fbshipit-source-id: 1e6fb55f77e01a2f653fd614d13d1d4a7ceeccea

facebookresearch/Detectron,facebookresearch/Detectron,facebookresearch/Detectron