more python 2 compatibility