fixed import issue and dictionary key in get_namespace_dict()