There is currently no way to automate this with PyPi. You could make a selenium script to generate a new token, however it may be clunky and would need to work separately from the rest of the script.