Python, classes and Addons

Hello to everyone

I’m new with Python language… some months ago my team and I ended a simply game proyect in our city, the game was full made with Blender and pure Python with the BGE libraries of the engine (very begining level). I was the code developer and 3D modeler/rigging , but the proyect had a short deadline so I couldn’t go deep with some issues that are important (in the development issues).

I have some questions about Python and Blender…
Well I’ve working during 2 years with Java and its Object Oriented filosophy… I started to develop some code following the next Cookie tutorials:

(these were my Python base… and the next was just explore the BGE API)

The point is that I never use classes in the code :S neither inheritance (was an amazing code mess), the game work but I don’t feel full at all… and now that I want to code some Addons in Blender I want to do it with the right leg :wink:

-If I’m developing an Addon… is possible the inheritance of an existing one? (How is the “format”?)

-How can I use an outside class in Python?(How is the “format”?)

-You recomend the use of nested classes?(Why?)

-I will try to put some simply features in the Grease Pencil tool, where you recomend me to start?

Sorry for all these questions but… I really want to pay with some work to Blender comunity.

Greetings

Maybe look here too: http://wiki.blender.org/index.php/User:Kilon/Python_book_of_magic/10.Module ?
contains info about classes too, see the chapters …

IMHO open a thread for ONE question your most important question first, solved or nearly solved the next or maybe at once …

One, where one uses inheritance of classes, is building a GUI, for Panel, or Operator, or Menu !!