Make python version more modular.