python output error code