java tokenization instead of python