Fix syntax error
Swap "file" with "open"

http://stackoverflow.com/questions/112970/python-when-to-use-file-vs-open
Fix reading of scp response to determine success
Merge pull request #26 from dancras/master

Fixes for fatal errors and python3