Please make global objects be capital as pylint suggest to avoid having them in global namespace. So instead of tokenizer use TOKENIZER, etc.