title: Login to a remote Windows machine to access shared files with Python
body: <p>I have a remote machine with shared files. This can easily be accessed via Windows Explorer, you just navigate to the path, provide the domain username and password and can view the files. Now I was trying to automate a task with a Python script and access the same folder programmatically. Looks like Python's os module doesn't provide API for doing this. I can still get to the folder using:</p>
  
  <pre><code>os.listdir(myPath)
  </code></pre>
  
  <p>but it shows a windows authentication error. WindowsError: [Error 1326] Logon failure: unknown user name or bad password.</p>
  
  <p>Are there any alternative packages in PyPI or some other built in way to authenticate on a remote machine? WMI won't do because I can't install WMI on the remote machine.</p>