Python tab creation
===

Alright, i am new to python, and simple tab creation in this language somewhat bewilders me.
I am trying to get a tabbed output like such:

    :0.1
      A:0.1
      :0.9
        H:2.2
        I:3.0
        B:0.2
      :0.5
        C:0.3
        D:0.4

It is the name of a node, a colon,':', and its corresponding distance, the nodes with no name are designated by 'None' and that is because they represent only a distance to another variable.  This is a tree design, so the tabs and indentations can vary.
I gather this information from a 
          
    self.name
representing the name variable, and a

    self.distance

representing the distance

An unindented output of the information looks like the following:

    A : 0.1
	H : 2.2
	I : 3.0
	B : 0.2
	None : 0.9
	C : 0.3
	D : 0.4
	None : 0.5
	None : 0.1

There are supposed to be 3 levels of indentations,

 the root, ':0.1',

 its 3 children of 'A:0.1'; ':0.9'; ':0.5',

 and ':0.9' and ':0.5's children, H,I,B,C and D

I apologize if this is not enough information, i am just unsure how to create a basic tabbed output like the one i've shown above.

Thanks!
    
   
