Adding comment functions for xml files

Also adding a foldnestmax for python files.