Changed code to 2.x in prep for SSH via Paramiko