SimHash Algorithm implemented on Python