FirstDraft of Final version of DetchableViews.py