Someone a while back @ccc created a challenge to write code to dump pythonista modules for use in autocomplete.
I don't think a winner was declared. But You might find this one useful (intended to dump _ui module, as ui.py can be copied from the app)
https://github.com/dgelessus/pythonista-scripts/blob/master/moduledump.py