python3 setup.py build
Output: build/lib.macosx-10.11-x86_64-3.5/hello.cpython-35m-darwin.so
$ cd build/lib.macosx-10.11-x86_64-3.5
$ python3
>>> import hello
>>> hello.hello_world()
Hello, world!
>>> hello.hello('world')
Hello, world!
Tested on OS X 10.11.5, Python 3.5.2.