display tag type in string instand of integer
use file.readlines() instead of file.read()
close the file in the end
more readable to_write list in function parse_file_header()
expand tab size to 20

change function order

print a space line after a tag header
add file .gitignore