fixed some issues with htrc python api