avoid crashes on popping empty lists\nTabulation as whitespaces for Python syntax