BUG: basestring is not PY3 compat
BUG: long is not PY3 compat
BUG: quoteplus is not PY3 compat