[R47]: add format.py and replace_method