SymPy Fix the table and delete the last empty cell