error handling of py