adding login.py script to generate tokens from keys