Deprecation removal

Remove 
1. Deprecated BaseException
2. while 1: