started switch to Pweave, new python file to serve as library and modified tex file.