Work in progress installation script, uses python now and is cleaner.