Ported urlencode dependency to Python 3 via six

six is now a dependency.