Getting things to work together with Flask.