Fix TypeError in Python 3.3 when module path returns NamespacePath