Two problems fixed. Exceptions weren't matching properly. Changed code for the __exnmatch__ method for exceptions to get an exception to match the exception type. 

The other issue was supporting the __list__ magic method in range objects so ranges can be converted to lists.