make tests more python 3 compatible