python binding for tslib