Fixed python3 detection