Dan Mossing's code for analyzing 24+ hr movies of behaving fruitflies