created token_generator.py and moved functions in utils.py to token_generator.py file