Add backported invert.py file.
Add hfile.