Python: Strip spaces between tags