More fixes for #98 Remove dependency on flask-script