Work around extractall bug in older versions of Python

Should fix the issue reported by @tschaub in #200.