The first two commands to learn, part 1

To find out what a python word does, use help().

help() even works on code that you have written yourself without having to do any setup. By default help() returns the prototypes for any functions you have written, however it is very helpful to give a brief text describing the function as well. Use triple-double quotes to delimit the help text:

def evolve(self,os):
    """
    Utility for adding an OS to your grub boot menu.
    """
    # code code code code

The first two commands to learn, part 2

Finding commands related to a concept: From a unix command line, run "pydoc -k concept"

XML

Producing XML with minidom.