Updated snap.py and nxt.xml to use new, flexible regex-based API. This update brings the module to v1.0.