small bugfixes for Python wrapper; simplified build