Using Python Flask with Treant.js