Source code build error (noob error)
It is a python2 source. You are 'building' it with python3. macOS comes with python2.

You can try these shell commands.

# Verify the version of python in $PATH
python --version

# Use stock python
/usr/bin/python setup.py install
# Or
python2.7 setup.py install