added Python 2.4 support; added RIPEMD160 and SHA-256 implementations in pure Python