fixed for older python versions
Merge pull request #560 from candlepin/ckozak/extractall_fix

fixed for older python versions