adding python stuffs for d3pd looper