make python3 compatible again