changed order of imports in order to prevent a missing-module-error if nltk is missing