Made binary star examples support Python 3.

Changed print "" to print(""), send to send_string, recv to
recv_string and setsockopt to setsockopt_string.

Signed-off-by: Even Wiik Thomassen <eventh@gmail.com>
Made binary star python examples follow pep8 coding standard.

Signed-off-by: Even Wiik Thomassen <eventh@gmail.com>
Remove class attributes that were not used in BinaryStar.

Also moved some attributes from class-level to instance level.
As voter_callback was set at instance-level, it makes more sense
to have them as data attributes instead of class attributes.

Signed-off-by: Even Wiik Thomassen <eventh@gmail.com>
Merge pull request #417 from eventh/pythonic

Improve binary star python example files
added a c/s example for c++
Merge pull request #418 from taozle/master

added a c/s example for c++
fixed hang at exit when using jeromq
Merge pull request #419 from akaranta/master

fixed hang at exit when using jeromq
Fix C++ build instructions for g++: -l argument must be after the filename
Merge pull request #420 from cosmoharrigan/g++

Fix C++ build instructions for g++: -l argument must be after the filename