handle decorator classes and module namespaces