I'm trying to take the output of upower -d (shell command) and split it into a long list using .split() so it can be searched.
When I do
import subprocess
dump = subprocess.check_output(["upower", "-d"])
print(dump.split())
it will print the output in list form as expected except every element in the list is preceded with a "b" (not inside the string).
When I do the same in python 2.7 it gives me the output I expect but I would like it to be in python 3.