python执行shell实时输出,并返回code

NoSuchKey