added compatibility for python 2.6 for ssh_read command

https://issues.apache.org/jira/browse/SPARK-1990