Use wall with a NamedTemporaryFile within a 'with file as f'