Remove post_format.py and pre_format.py and create format.py instead

- merge post_format.py and pre_format.py into format.py
- revise Makefile