def write(targets, filename='make.py'): out = WriteFile(filename) out.write(header) recurse('all', targets, out) out.close()