Switch doc script to python(from batch) and move into root directory