fix python3.3, python3.4, and tornado 4.x support