Write iface choice to file

This seems unnecessary but I can't see a way to pass a string back from python, because of the prompt.