adding `universal_newlines=True` to the subprocess maybe helpful.
adding
universal_newlines=Trueto the subprocess maybe helpful.