re-establish python 3 compatibility