use subprocess.check_output instead of python2-sh module