fix #785: handle binary type address given to a client socket address
Update custom application example.

It's running on both Python 2 and 3 now.