Use six for handling import paths and changes for string instances, urlparse and iteritems.