Improve is_namespace() check for modules where __spec__
is None
#1802
+17
−1
__spec__
is None
#1802