test_crawler: Fix Python 3 incompatibility
The default open() of Python 3 is from the io module and it opens text files as unicode strings instead of byte string. Luckily it has been backported to python 2.