added document.py file containing the class required to generate latex documents form python