Merge changes to Python tools from H2 branch.

Original commit messages:
Also read comment line from XYZ files.
Nicer text output.
Accept multiple conf files.
Better format specification.