Decompiled and modified with proper (if calling C# program from Python script can be called proper) hashing algorithm Santos' smbod tool that converts BOD files into XML and visa versa, decompresses and compresses BOD files.
Requires Python 2.7 and currently expects smhasher to be built and placed near smbod.py.
Decompress mode is typically used to load model-related BODs (.bmat, .o3d, .object-manifest) that are compressed by default into 3ds Max with Santos' Space Marine 3ds Max scripts.