GIFT (File Format) ported from PHP to Python.