track parent in kernel

raw_input / getpass are not lambdas, but Kernel methods.
parent state is tracked in Kernel traitlets.