Original script from https://gist.github.com/82b84206317fc3ddfd70 for archival purposes
Fast-forward to the production script.

Major changes include:

 - change of output format to {user}/{tweet_id} files in text and json format.
 - input is no longer hard-coded in favor of a newline-delimited text list of usernames.
 - all calls wrapped with delay-retry code (the rate limit bites hard when trying to download dozens of accounts' full history).