capToFile.py added