tar_options is a string and is immutable, so reassign it instead of calling remove
Merge pull request #12265 from jslatts/tar_f_option_fix

archive.py state throws AttributeError when the 'f' flag is passed as a tar_option