def teardown(): """Clean it all up.""" TrackFile.clear_all() for camera in Camera.instances: camera.photos.clear() for photo in list(Photograph.instances): photo.destroy() Photograph.cache.clear() modified.clear() selected.clear() Widgets.loaded_photos.clear() system('git checkout demo') for key in Gst.list_keys(): Gst.reset(key)