Made the library proper python package
Moved changes from bnw back here