Template script for use with Paramiko. This is a good base to work from for automation.
./test.py hosts.txt username passowrd
This will load the hostnames defined in the file one by one and output the SSH command on them.
python3
pip3 install paramiko