had trouble compiling code in to .so for python use, started but not finished