Updated shell utilities.

Brought shell utilities in line with UniqueMixin updated models and added an environment check in the manager file. Fixed accidental circular import.