I edited those two codes to use DropBox API v2: dropboxloginv2.py and DropboxSyncv2.py .
Now that API v1 is deprecated, you'd better use those new codes.
They are working well on my Pythonista 3, but not well tested.
If you notice any bugs, please fork the codes and fix them!