Since Pythonista cannot share or download folders, or multiple files at once, and requires you to copy and paste files into one you created yourself, here is a workaround. Just add the filename to the dictionary as the key, and the contents of that file in the value for that key. Make sure it is a multiple-line string.
So, here it is. A pretty simple, and yet extremely useful tool for sharing multiple files with other Pythonista users. Just send them the installer file, have them run it, and they have all of the files now!
This comes preloaded with an example, though it is easy enough to understand what's going on that you probably won't need it.
# coding: utf-8
files = {"averages.py":'''# coding: utf-8
# This program will calculate the average value of a list of floats.
stored = []
average = 0
keep_adding = True
while keep_adding == True:
entered_value = raw_input("Enter a number, or end: ")
if entered_value == "end":
break
elif entered_value == "alpha":
print 7.6
else:
stored.append(float(int(entered_value)))
for num in stored:
average += num
print "Average: "+str(float(average/len(stored)))'''}
for file in files.keys():
open(file,"w").write(files[file])
