Minor cleanup of Django scripts to clear lint warnings.