wrapper.py: made executable, fixed final newline.
Added testlib target to test shared lib via python wrapper.