Header mapping app in Flask framework of python