How are you copying the scripts into Pythonista? If you copy-paste the text from the website or app, it's possible that the indentation is lost (for example if the website uses HTML/CSS to display indented text, instead of real tab/space characters). Things probably work better if you import the entire file directly instead.

Unfortunately this is not very straightforward with Pythonista. Due to Apple's app guidelines, Pythonista is not allowed to import executable code. (This restriction was relaxed around the time when iOS 11 was announced, but Pythonista hasn't been updated yet to take advantage of this.) This means Pythonista is not an "Open In..." target, however you can import non-Python files using the Pythonista share extension's "Import File" option. You can also import Python files like this, for example by changing the extension or putting them in a zip file.

There are also a few Dropbox sync scripts for Pythonista that you can find on the forums, you could use those as well. (When searching the forums, I recommend against using the built-in search function, it's really bad. Instead you can use a regular search engine, like Google or DuckDuckGo, with site:forum.omz-software.com added to the search text. This restricts search results to only the forums.)