Work on Python to C++ interface.

This reverts many of the other changes made that included boost, which was having a harmful effect on the repository's size.