use dict for decode dispatch case statement
don't run doctests on import