Fix python 2 hashing.

Make tests for hash compatibility with Fraction Python 3-only.

Fixes #26.