python 3 compatible compare

fixes #96