code: def has_attribute(module_name, attribute_name):
      
      init_file = '%s/__init__.py' % module_name
      return any(
          [attribute_name in init_line for init_line in open(init_file).readlines()]
      )
docs: Is this attribute present?