removed use of subprocess.check_output, which was only introduced in python 2.7