Create dom_helpers.py

helper functions to parse dom. Only check for tag right now.