Adds ancestor retrieval method to PyGlassElement.py.