pfp
is a python-based interpreter for 010 template scripts.
See the main documentation on Read the Docs
Install pfp with
pip install pfp
You don't feel like going to read the docs? This should get you started parsing something using 010 templates:
import pfp
dom = pfp.parse(
data_file="~/Desktop/image.png",
template_file="~/Desktop/PNGTemplate.bt"
)