flask sort of working, pyramid is broken.