python 3 compatibility

python 3 doesn't have unicode or long types, so those aren't checked
against in it