Build library for python wrapper