Import from six for py3k compatibility.