use integer_types #38
psycopg2_pool.py: use integer_types #38
baseserver.py: use integer_types
core.ppyx: use integer_types
subprocess: types.StringTypes -> string_types #38
subprocess.py: avoid reinitilization of rawlink()
Use xrange from gevent.hub
Fix Queue -> queue, refs #38.
Merge pull request #352 from surfly/pr344

Py3-related random fixes