Update libthing.py