Video recorder using python 2.7