added flask to all imports and fixed invalid pipeline root