Understanding 'subprocess check_output returned non zero exit status 1' Error in Python