Write Php Script Using User Defined Exceptions Python Programming