Move Python install process to else branch