changed build script from sh to python, cleaned up the rest of the config files