Writing Debatum in AngularJS + Python