Cleanup the C++ extensions. Add more functionality to pythonhelpers.