Python code to analyze rodent movements from an input video