I did it this way
def GetMyType():
return bpy.types.Scene
def register():
GetMyType().reg = bpy.props.StringProperty(default='WeightTransfer')
GetMyType().sourceMesh = bpy.props.StringProperty( description="Source mesh" )
GetMyType().sourceArmature = bpy.props.StringProperty( description="Source armature" )
GetMyType().destMesh = bpy.props.StringProperty( description="Destination mesh" )
GetMyType().createEmptyGroup = bpy.props.BoolProperty( description="Create empty groups option", default=True )
bpy.utils.register_class(WeightTransferOperator)
bpy.utils.register_class(WeightTransfer)
bpy.utils.register_module(__name__)
OK @Terry to add a prefix but I was wondering about the possibility to add a new type/data both at the bpy.types level and at the context level.