refactored python installation.