make file comparison py3 compatible

In python 2:

>>> b"" == ""
True

In python 3:

>>> b"" == ""
False

Great stuff..