Straightening Out AngularJS with Python