Use older subprocess command for python2.6 compatibility
Parse subprocess output so python 3 will accept it

subprocess produces binary strings in python 3, so we need to call
decode() on it before we can call split().  This still works with python
2.x