updated flask ipython versions
updated package versions to latest, fixed some bugs introduced from the updates