python3: python3 binary/text data compatbility

Python3 enforces the distinction between byte strings
far more rigorously than Python 2 does; binary data
cannot be automatically coerced to or from text data.

Use six to provide a fake file object for textual data.
It provides an alias for StringIO.StringIO in python2
and io.StringIO in python3

Change-Id: I65897bb0cca2cbeb5819a769b98645c9eb066401
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Silence exceptions from qpid connection.close()

Fixes bug 1185465

Don't log exceptions that happen during connection.close().  They're
not surprising (a closed socket can't be read or written), don't
require sysadmin attention, and provide red herrings in the logs
to distract from finding real root causes of problems.

Change-Id: Ie414ba3f4ff1f1dee13e6168ac2e28dab535581b
python3: Introduce py33 to tox.ini

Introduce py33 to tox.ini to make testing with
python3 easier.

Change-Id: I9a5a7e8258afc31b9d29b2845d98e7e9c552e88d
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Enable hacking H402 test

H402  one line docstring needs punctuation

Change-Id: Ie848453cace318d8310cdf0234c512f4c1121119
Merge "python3: Introduce py33 to tox.ini"
Merge "python3: python3 binary/text data compatbility"