Python: Creating tables in .pdf, .xls and .html formats