Updated python scripts