Python exception handling

shape