[HexFile.py] Reimplement Writer class.