fix Python install errors