You parse the file once for each method- and it seems unclear how parse file returns the tweets? Clean up this duplication.