more PEP 8 conformations
more pep 8 fixes
implemented most logic in the the czmq implementation.
Tests needed to confirm!