fix w3lib deprecation warnings
Merge pull request #91 from tpeng/fix-w3lib-warnings

fix w3lib deprecation warnings