[dice] Fix incompatibilities with Python 3.

- Fixes #465.
- Also update regexp examples to use the new re=True mechanism.
- All tests for dice.py pass with both Python27 and Python33.