messy python scripts added. Need to armor against errors and simplify.