By using Popen instead of capture_output=True on the subprocess call, this works for python version 3.6 and 3.7.
The .strip() call on the value also removes and newlines, which appear on python 3.6, but not on python 3.7.
By using Popen instead of capture_output=True on the subprocess call, this works for python version 3.6 and 3.7.
The .strip() call on the value also removes and newlines, which appear on python 3.6, but not on python 3.7.