this isn't a python solution, but are you sure you want the host machine asking for a password each time? why not install your public key on the host machine so it doesn't ask for a password? nick