subprocess check_output returned non zero exit status 1