See Python official website for instructions.
Install using pip (recommended, no separate download required):
pip install intelhex
See the official website of the library for documentation.
A few example files are here. Please edit them to suit your needs.