message: Fix redex.py --debug flag under Python 3
  Summary:
  subprocess.check_output() returns a `bytes` object in Python 3. This
  was causing `' '.join(args)` to choke as it was expecting a list of strings,
  not bytes.
diff: @@ -91,7 +91,8 @@ def run_pass(
  if executable_path is None:
  try:
  - executable_path = subprocess.check_output(['which', 'redex-all']).rstrip()
  + executable_path = subprocess.check_output(['which', 'redex-all']
  + ).rstrip().decode('ascii')
  except subprocess.CalledProcessError:
  pass
  if executable_path is None:
  @@ -102,7 +103,7 @@ def run_pass(
  executable_path = join(dir_name, 'redex-all')
  if not isfile(executable_path) or not os.access(executable_path, os.X_OK):
  sys.exit('redex-all is not found or is not executable')
  - log('Running redex binary at ' + str(executable_path))
  + log('Running redex binary at ' + executable_path)
  args = [executable_path] + [
  '--apkdir', apk_dir,
  