In the init file kw argument for the csv file is path but it is an unknown argument in the function: scene_manager.stats_manager.save_to_csv(path=stats_file_path, base_timecode=video.base_timecode) it should be - scene_manager.stats_manager.save_to_csv(csv_file=stats_file_path, base_timecode=video.base_timecode)