fix test on python 2.7 refs #17