shared function to create dropbox token in dropbox_tools.py