Python installation fix for Ubuntu