Update gedcom_parser.py

use stack of element to avoid hard coding depth