C++/Python interface for messages. Strips brain down to runnable functions only.