Fix python 3 comparison test