setup interactive shell with flask context