Retry failed ssh commands in the ec2 python script.

This is especially useful when starting up when the hosts may not have yet come on-line but can be useful at other points for people with flakey connections