switching install base script to python