What is error handling in Python and how to implement it?