changed build script from sh to python, cleaned up the rest of the confi...

...g files