Fixes Py3 incomatibility.  Closes #11