use six.moves instead of _compat