revision source of cctv.py