Fixes boost problems so that messages are now passed into python correctly.