Make it work with python3 and python2. libarea has to be compiled with -lboost_python3 instead of -lboost_python in LDFLAGS for python3.