Python Create Html Report From Sql