Initial python wrapper for libts API