'Get a list of files on a remote host given a glob pattern path.'

def list_files_glob(self, glob):

    SCRIPT = "python    -c    'import    cPickle,    glob,    sys;cPickle.dump(glob.glob(sys.argv[1]),    sys.stdout,    0)'"
    output = self.run(SCRIPT, args=(glob,), stdout_tee=None, timeout=60).stdout
    return cPickle.loads(output)
