Added experimental python 3 support.
Fixes #46.