Make setup.py python3 compatible

Doctests still fail in spark.py for unknown reasons...