These are a set of functions I wrote and used to process the movie conversations provided in the Cornell Movie-Dialogs Corpus.
link to download the metadata -- https://www.cs.cornell.edu/~cristian/Cornell_Movie-Dialogs_Corpus.html
statements_responses.txt -- the is the final file that contains every movie conversation broken up into statement / response format.