title: How to copy a file along with directory structure/path using python?
body: <p>First thing I have to mention here, I'm new to python.</p>
  
  <p>Now I have a file located in:</p>
  
  <pre><code>a/long/long/path/to/file.py
  </code></pre>
  
  <p>I want to copy to my home directory with a new folder created:</p>
  
  <pre><code>/home/myhome/new_folder
  </code></pre>
  
  <p>My expected result is:</p>
  
  <pre><code>/home/myhome/new_folder/a/long/long/path/to/file.py
  </code></pre>
  
  <p>Is there any existing library to do that? If no, how can I achieve that?</p>