draft of scripts to process rated tweets