Code completion in Python and Netbeans 6.7.1 when the type is not known by netbeans.

If you code and NetBeans can not determine the type where you
want to complete you're code, it has an entry named:
Specify type of
This creates a comment above with a special syntax:

# @type
 The cursor stands after the " ". Here you can issue a 
code completion.
When the type is found, the code completion works for types defined somewhere outside.

To use this I had to import with the from statement like

from cfg import processData