Switching backend to Flask