Template Based Data Extraction Python Script

Given a list of field types in a template definition file, "dextract.py" will extract/interpret/print the respective field values starting from a given file offset (defaults to beginning of the file).
After it has iterated through each field in the template definition file once, it assumes the same data structure/template  repeats until the end offset (defaults to end of file) and so the script iterates repeatedly until then.
Additionally, by declaring selected timestamp fields in the template definition, the script will interpret the hex values and print them in a human readable ISO format (YYYY-MM-DDThh:mm:ss).

See also http://cheeky4n6monkey.blogspot.com/2013/12/monkey-vs-python-template-based-data.html