Updated python scripts and python matrix script.