Add compat module, remove decoding of strings in notification

and do direct import instead of relative import.