python try catch generic error