Will use string formatting, but namebase doesn't work with tar.gz as the extension due to the extra period (same problem with os.path).