use six for py3 compat