Rename generate_cassette() to cas_write_file()