Add Python code for analysing videos