we need validation on range, interval and probability. You might be able to use http://flask.pocoo.org/docs/patterns/wtforms/