title: Copying and renaming excel files with Python
body: <p>I am trying to copy an excel file and rename it. For example I have a file <strong><code>HI.xlsx</code></strong> and I want to copy it and rename it as <strong><code>BYE.xlsx</code></strong>.<br>
  My code to do this is below and when I run it, the file <strong><code>BYE.xlsx</code></strong> is created, but it is corrupted. </p>
  
  <p>Here is what I am using:</p>
  
  <pre><code>fIn = open(r"HI.xlsx")
  fOut = open(r"BYE.xlsx", "w")
  </code></pre>