python scripts for generating input files for quickpic