Fix detecting python3