build: Fix compile when python3 is not available