try catch python return