make this work again with  python 2/3