title: bundling/executing python script + modules to a remote machine
body: <p>I have looked into other python module distribution questions.  My need is a bit different (I think!, I am python newbie+)</p>
  
  <p>I have a bunch of python scripts that I need to execute on remote machines.  Here is what the target environment looks like;</p>
  
  <ul>
  <li>The machines will have base python run time installed</li>
  <li>I will have a SSH account; I can login or execute commands remotely using ssh</li>
  <li>i can copy files  (scp) into my home dir</li>
  <li>I am NOT allowed to install any thing on the machine; the machines may not even have access to Internet</li>
  <li>my scripts may use some 'exotic' python modules -- most likely they won't be present in the target machine</li>
  <li>after the audit, my home directory will be nuked from the machine (leave no trace)</li>
  </ul>
  
  <p>So what I like to do is:</p>
  
  <ul>
  <li>copy a directory structure of python scripts + modules to remote machine (say in /home/audituser/scripts).  And  modules can be copied into /home/audituser/scripts/pythhon_lib)</li>
  <li>then execute a script (say  /home/audituser/scripts/myscript.py).  This script will need to resolve all modules used from 'python_lib'  sub directory.</li>
  </ul>
  
  <p>is this possible?  or is there a better way of doing this?  I guess what I am looking is to 'relocate' the 3rd party modules into the scripts dir.</p>
  
  <p>thanks in advance!</p>