Here is code I have written to help in the analyzing the behavioral phenotypes of flies observed in arenas as or similar to flybowl