Added smelly code

Not smelly: new code for python 2.7 & 3.x support for queue

smelly as hell: debugHelp is littered everywhere. will transition to
logging module in next commit.