compat: extract queue imports to _compat module.

Adds python 2.5 support for the LifoQueue structure.
connection: remove stray print statement.
connection: fix py3 syntax bug.
tests: tweak blocking connection pool test.

Previously the `test_max_connections_blocks` test wasn't actually
testing that the connection was blocking.