util: In Blob, added toBuffer to support early python versions.