The `string` module is deprecated as of Python 1.6. Please use `command.replace('%f', f)` instead.