Using example code to explore possible bugs

- converting contrib code to python3
- fixing binary protocol
- fixing ascii protocol
- fixing documentation issues
- all tests pass for python3