Python Return Error Code To Shell