There are two typos in the documentation page: http://pymol.sourceforge.net/newman/user/S0300movies.html#11_4
"... file_list = glob("mov*.pdb"): for file in file_list ..." should be: "... file_list = glob("mov*.pdb") for file in file_list: ..." -Sahak