python lib and doc update