refine to python code format file