How To Create A Document In Python