Use six.moves for urllib.quote
Import cPickle from six.moves
Make self._entries.items() a list for Python 3 compatibility
Add __next__ method to BaseIterator for Python 3 compatibility
Use six.text_type for reason in TweepError
Use 'in' keyword for checking dictionary key membership