How can I replace ~60 print entries in 5 different files using vim or sed? : <p>Fabfile (directory) containing Python files:</p>

<pre><code>print "DEBUG fab_helper DRYRUN: True"+var
print "DEBUG fab_helper DRYRUN: True"
#print "DEBUG cfn_stackname: "+cfn_stackname
</code></pre>

<p>To:</p>

<pre><code>LOGGER.DEBUG("DEBUG fab_helper DRYRUN: True"+var)
LOGGER.DEBUG("DEBUG fab_helper DRYRUN: True"
LOGGER.DEBUG(""DEBUG cfn_stackname: "+cfn_stackname)
</code></pre>

<p>How can I replace all these entries with my Logger module?
Should I use vim or sed?</p>
