title: Python script to get files from one server into another and store them in separate directories?
body: <p>I am working on <code>server 1</code>. I need to write a Python script where I need to connect to a <code>server 2</code> and get certain files (files whose name begins with the letters 'HM') from a directory and put them into another directory, which needs to be created at the run time (because for each run of the program, a new directory has to be created and the files must be dumped in there), on <code>server 1</code>.</p>
  
  <p>I need to do this in Python and I'm relatively new to this language. I have no idea where to start with the code. Is there a solution that doesn't involve 'tarring' the files? I have looked through Paramiko but that just transfers one file at a time to my knowledge. I have even looked at glob but I cannot figure out how to use it. </p>