bugfixes: - to_text(stdout) before json.loads in psrp.Connection.put_file in case stdout is bytes