get_matching_blocks() fails on python3 #14

Now checks item not only for being an instance of bytes, but also checks to be an instance of str

Please check if this is acceptable! It solves my problem but I am not certain as to which are the correct architecture principles here