pub fn commands2py<W>( config: &Config, commands: &[(u16, Command)], writer: W, ) -> Result<()>where W: Write,