add some python file utils