Updated requirements and improved tokens.py script