duplication of hooks

define the mechanism of hook duplication.

users have to pass init-parameter to __init__ of funhook.Hook