Python Html Object To String