add various python3 support