Fixed up linker errors and python bindings