How To Write Custom Exceptions In Python