add readfile and make test python