refine the python installation script