Fix bugs for remote transfers

Fix a few bugs with remote transfers that prevented actual remote
sessions.  Also, handle keyboard based cancellation in Python.
Merge branch 'master' of https://github.com/bws/xdd