bitstring is a Python module that helps to make the creation and analysis of binary data as simple and natural as possible. Objects can be constructed from integers (big and little endian), floats, hex, octal, binary, byte data, iterables, or files. They can be sliced, joined, reversed, packed, unpacked, inserted into, overwritten, and otherwise operated upon with simple functions or slice notation. They can also be parsed, searched, and navigated in, similar to a file or stream. Internally the data is efficiently stored as byte arrays. It is available for Python 2.6 and later (including Python 3).
LMDBG is a collection of small tools for collecting and analyzing the logs of malloc/realloc/memalign/free function calls. Unlike many others, LMDBG does not provide any way to detect overruns of the boundaries of malloc() memory allocations, as this is not the goal. Like most other malloc debuggers, LMDBG allows detecting memory leaks and double frees. However, unlike others, LMDBG generates full stacktraces and separates the logging process from analysis, thus allowing you to analyze an application on a per-module basis.