Fixed python bindings errors on OSX.

Reordered the includes to avoid a crazy boost preprocessor error.