doc: recommend install via pip
python3 compat: 2to3: `except E as e:` syntax

First step to Python 3 compatibility
"2to3 -w -f except ." See [1]

[1] http://docs.python.org/2/library/2to3.html#fixers
python3 compat: print() function syntax
python3 compat: remove lots of Python 2.5 and earlier dependent code; use print() function syntax
python3 compat: `raise E(arg)` syntax

.with_traceback() is not backward compatible, so left to on-demand 2to3 run
Use MySQL-python only in python2.x enviroment

There is no python3 support in MySQL-python, so we should use
this module only in py2x evn. For python3 we should use (probably)
pymysql module.
Use six.reraise() in case of raise(*sys.exc_info())
Fix imports from Queue
Use _thread instead of thread in case of python 3
Use six.iteritems() instead of dict.iteritems()
Renamed xrange() to range()

xrange() was renamed to range() in python3.
python3: replaced basestring to six.string_types
python3: fix a long integer usage
python3: Replace file and _fileobject

Use io.IOBase instead of file and socket.SocketIO instead of
socket._fileobject
python 3: Use queue instead of Queue in py3 env
python 3: Replace thread to _thread in py3 env
Syntax py3 fixes in /tmp/* test files
Remove `new` module usage

Module new from python stdlib was removed in python 3 so we should
remove it's usage due to py3 compability
Remove tuples from function signature
Add __bool__() and __next__() methods