Thank you marco. +1 for bringing the script to 2.6x
[UPDATE] In blender 2.49b (all pre blender2.5 releases) there is a nasty z-twist bug (please search the forum for this issue)
To solve this problem in most cases you have to rotate your tree 90° around the 3D cursor on the Y or X axis.
After using the script you can simply re-rotate your finished mesh-tree.
Yep, what i posted is a method to re-use generated leaves to drive the distribution of custom modeled leaves, the UV part is a trick to select the right vertices lying on branches and delete the other ones.