Set language before import account
The demo script setup the language at the end but indeed since #9559 (closed) the charts imported depends on the language translated. So this may lead to issue like #11906 (closed) when someone activate a module that extend the charts of accounts (because the account module was not activated with the currently translatable languages).