python script better and tex documentation almost done