Fix py3 setup exceptions