my python wrapper for CTP