def read_remote_file(path): ''' Read remote file contents. ''' fd = StringIO() get(path, fd) return fd.getvalue()