Fix building on Python 3.  Fix #27.