Fixing python scripts for table name changes.