How To Throw Custom Errors In Python