Fix issue when Namespace is used in a getattr() buildin function

Signed-off-by: Gaetan Semet <gaetan.semet@intel.com>