Make ripemd lib compatible with python 3