f = open('setup.m','w') f.write('cd cantera\nbuildwin\nexit\n') f.close()